package com.stream.controller;

import com.stream.model.entity.SysUserEntity;
import com.stream.utils.ShiroUtils;

/**
 * Controller 公共组件
 * Created by Stream on 2017/6/10.
 */
public abstract class AbstractController {

    protected SysUserEntity getUser() {
        return ShiroUtils.getUserEntity();
    }

    protected Long getUserId() {
        return getUser().getUserId();
    }
}
